package com.geekathon.mobzilla.model;

import com.google.gson.annotations.SerializedName;

public class ErrorMessage {

	@SerializedName("code")
	private Integer code;

	@SerializedName("error")
	private boolean isError;

	@SerializedName("message")
	private String message;

	@SerializedName("html_page")
	private String htmlPage;

	@SerializedName("http_code")
	private Integer httpCode;

	@SerializedName("xmlrpc_code")
	private Integer xmlrpcCode;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public boolean isError() {
		return isError;
	}

	public void setError(boolean isError) {
		this.isError = isError;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getHtmlPage() {
		return htmlPage;
	}

	public void setHtmlPage(String htmlPage) {
		this.htmlPage = htmlPage;
	}

	public Integer getHttpCode() {
		return httpCode;
	}

	public void setHttpCode(Integer httpCode) {
		this.httpCode = httpCode;
	}

	public Integer getXmlrpcCode() {
		return xmlrpcCode;
	}

	public void setXmlrpcCode(Integer xmlrpcCode) {
		this.xmlrpcCode = xmlrpcCode;
	}

	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ErrorMessage[");
		builder.append("code = ").append(code);
		builder.append(" htmlPage = ").append(htmlPage);
		builder.append(" httpCode = ").append(httpCode);
		builder.append(" isError = ").append(isError);
		builder.append(" message = ").append(message);
		builder.append(" xmlrpcCode = ").append(xmlrpcCode);
		builder.append("]");
		return builder.toString();
	}

}
